//
//  UIView+Size.h
//  MexicoLoan
//
//  Created by WXP on 2025/2/24.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIView (Size)

@property (nonatomic, assign) CGFloat topToUpView; 

//组合
@property (nonatomic,assign) STRUCT_XY leftCenterY;
@property (nonatomic,assign) STRUCT_XY leftTop;
@property (nonatomic,assign) STRUCT_XY leftBottom;
@property (nonatomic,assign) STRUCT_XY centerXTop;
@property (nonatomic,assign) STRUCT_XY centerXCenterY;
@property (nonatomic,assign) STRUCT_XY centerXBottom;
@property (nonatomic,assign) STRUCT_XY rightTop;
@property (nonatomic,assign) STRUCT_XY rightCenterY;
@property (nonatomic,assign) STRUCT_XY rightBottom;
@property (nonatomic,assign) STRUCT_XY widthHeight;

//扩展
@property (nonatomic, assign) CGFloat x;
@property (nonatomic, assign) CGFloat y;
@property (nonatomic, assign) CGFloat left;
@property (nonatomic, assign) CGFloat top;
@property (nonatomic, assign) CGFloat height;
@property (nonatomic, assign) CGFloat right;
@property (nonatomic, assign) CGFloat bottom;
@property (nonatomic, assign) CGFloat width;
@property (nonatomic, assign) CGPoint origin;
@property (nonatomic, assign) CGSize size;
@property (nonatomic, assign) CGFloat centerX;
@property (nonatomic, assign) CGFloat centerY;

// 高度
+ (CGFloat)getHeight:(id)model;
+ (CGFloat)getHeight:(id)model className:(NSString *)strClassName;
+ (CGFloat)getHeight:(id)model selectorName:(NSString *)strSelectorName;
+ (CGFloat)getHeight:(id)model par:(id)par className:(NSString *)strClassName selectorName:(NSString *)strSelectorName;
+ (CGFloat)getHeight:(id)model className:(NSString *)strClassName selectorName:(NSString *)strSelectorName;


@end

NS_ASSUME_NONNULL_END
